﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="reguploadimg.aspx.cs" Inherits="ZF.WS.reg.reguploadimg" %>

<%@ Register Src="../UserControls/SWFUpLoad.ascx" TagName="SWFUpLoad" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>选择要上传的图处</title>
    <link href="/css/common.css" rel="stylesheet" type="text/css" />
    <link href="/css/default.css" rel="stylesheet" type="text/css" />

    <script src="/js/jQuery.js" type="text/javascript"></script>

    <script src="js/jquery-1.4.2.js" type="text/javascript"></script>

    <style>
        * { margin: 0px; padding: 0px; font-size: 12px; list-style: none; font-family: 宋体,arial,verdana,sans-serif,fantasy,tahoma; }
    </style>

    <script>

        $(function() {
            var __type = "<%=this.Type %>";
   
            $(".ok").click(function() {
                var fs = GetUpLoadFiles();
                if (fs.length > 0) {

                    window.opener.window._regUploadImgOk(__type, fs[0]);
                    window.close();
                } else {
                    alert("请选择要上传的图片");
                }

            });
            $(".cancel").click(function() {
                window.close();
            });
        });
    </script>

    <script>


        $(document.forms[0]).submit(function() {
            var str = "";
            $(GetUpLoadFiles()).each(function() {
                if (str == "")
                    str += this;
                else
                    str += ";" + this;
            });
            $( ).val(str);
        });</script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table class="edit">
            <tr>
                <td style=" height:140px; vertical-align:top;">
                    <uc1:SWFUpLoad ID="SWFUpLoad1" runat="server" UpLoadURL="/uploadfile.aspx?type=member"
                        FileLimit="1" maxsize="500" FileType="*.gif;*.jpg" />

                   
                    
                </td>
            </tr>
            <tr>
            <td class="b"><input type="button" class="linkbtn ok" value=" 确 定 " />
            <input type="button" class="linkbtn cancel" value=" 取 消 " /></td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
